﻿
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;
using SqlSugar;

namespace IotFun.Views.EquipInfoView.Dto;

/// <summary>
/// 设备管理输出参数
/// </summary>
[ExcelExporter(Name = "设备管理", TableStyle = TableStyles.Custom, AutoFitAllColumn = true, MaxRowNumberOnASheet = 500)]
public class EquipInfoOutput
    {
    /// <summary>
    /// Id
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public long id { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [ExporterHeader(DisplayName = "名称", ColumnIndex = 1)]
    public string name { get; set; }

    /// <summary>
    /// 分组Id
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public long groupid { get; set; }

    /// <summary>
    /// 分组名称
    /// </summary>
    [ExporterHeader(DisplayName = "分组名称", ColumnIndex = 2)]
    public string groupname { get; set; }

    /// <summary>
    /// 绑定单元号
    /// </summary>
    [ExporterHeader(DisplayName = "绑定单元号", ColumnIndex = 7)]
    public string unitnum { get; set; }

    /// <summary>
    /// 绑定节点号
    /// </summary>
    [ExporterHeader(DisplayName = "绑定节点号", ColumnIndex = 8)]
    public string bindnum { get; set; }

    /// <summary>
    /// 协议类型
    /// </summary>
    [ExporterHeader(DisplayName = "协议类型", ColumnIndex = 10)]
    public string protobuftype { get; set; }

    /// <summary>
    /// 程序Id
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public long programid { get; set; }
    /// <summary>
    /// 程序名称
    /// </summary>
    [ExporterHeader(DisplayName = "程序名称",ColumnIndex = 3)]
    public string programname { get; set; }

    /// <summary>
    /// IP端口
    /// </summary>
    [ExporterHeader(DisplayName = "IP端口", ColumnIndex = 4)]
    public string ipaddress { get; set; }
    /// <summary>
    /// 排序
    /// </summary>
    [ExporterHeader(DisplayName = "排序", ColumnIndex = 13)]
    public int ordernum { get; set; }
    /// <summary>
    /// 是否启用
    /// </summary>
    [ExporterHeader(DisplayName = "是否启用", ColumnIndex = 5)]
    public int isenable { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [ExporterHeader(DisplayName = "编号", ColumnIndex = 6)]
    public string num { get; set; }

    /// <summary>
    /// 轮询时间
    /// </summary>
    [ExporterHeader(DisplayName = "轮询时间", ColumnIndex = 12)]
    public int pooling { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    [ExporterHeader(DisplayName = "设备类型", ColumnIndex = 9)]
    public string equiptype { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [ExporterHeader(DisplayName = "备注", ColumnIndex = 14)]
    public string remark { get; set; }
    /// <summary>
    /// 解析方向
    /// </summary>
    [ExporterHeader(DisplayName = "解析方向", ColumnIndex = 11)]
    public string readdirection { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [ExporterHeader(DisplayName = "创建时间", ColumnIndex = 15)]
    public DateTime createtime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public DateTime updatetime { get; set; }

    /// <summary>
    /// 创建者Id
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public long createuserid { get; set; }

    /// <summary>
    /// 修改者Id
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public long updateuserid { get; set; }

    /// <summary>
    /// 软删除
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public bool isdelete { get; set; }
    /// <summary>
    /// 是否Mqtt发布
    /// </summary>
    [ExporterHeader(IsIgnore = true)]
    public int ismqttpublish { get; set; }
}
 

